<?php
/*  AjaxWhois Pro 1.0 for Joomla 1.5
*   by Uma Sharma bizguruji@softuff.org
*   Powered by Softuff eDevelopment - www.softuff.org
*
* @ Released under GNU/LGPL License : http://www.fsf.org/
**/

// ensure this file is being included by a parent file
if ( ! ( defined( '_VALID_AW' ) || defined( '_JEXEC' ) || defined( '_VALID_MOS' ) ) ) { die( 'Direct Access to this location is not allowed.' ); }

####################### start DATABASE CLASS ########################
/*
* config table class
*/
class TableAWConfig extends JTable {
 
  var $id=null;
  var $configName=null;
  var $loadMoo=null;
  var $mooVersion=null;
  var $idn=null;
  var $minDomainLength=null;
  var $siteLink=null;
  var $whoisLink=null;
  var $regLink=null;
  var $tfrLink=null;
  var $hostLink=null;
  var $storeDomains=null;
  var $awTemplate=null;
  var $useImages=null;
  var $imageSize=null;
  var $language=null;
  var $titleText=null;
  var $titleTag=null;
  var $titleClass=null;
  var $extText=null;
  var $extTag=null;
  var $extClass=null;
  var $domainPartWidth=null;
  var $domainBoxText=null;
  var $extsInRow=null;
  var $textBoxWidth=null;
  var $dropdownWidth=null;
  var $extsWidth=null;
  var $extWidth=null;
  var $showPrice=null;
  var $priceWidth=null;
  var $componentLink=null;
  var $moreExtsText=null;
  var $whoisWin=null;
  var $lightBox=null;
  var $ddColor=null;
  var $fixDD=null;
  var $DDleftPos=null;
  var $DDtopPos=null;
  var $leftOffset=null;
  var $topOffset=null;
  var $whoisWidth=null;
  var $whoisHeight=null;
  var $configDefault=null;
  var $byePassDomain=null;
  var $published=null;
  var $useCheckBoxImages=null;
  var $showDot=null;
  var $timeOut=null;
  var $colorChecked=null;
  var $colorUnChecked=null; 
  var $useBoxBackground=null;
  var $buttonPosition=null;
  var $buttonColor=null;
  var $checkBoxColor=null;
  
/**
* config table function
*/
  function __construct(&$db) {
  	parent::__construct( '#__aw_config', 'id', $db );
  }
}
/*
* invoices table class
*/
class TableAWInvoices extends JTable {
 
  var $id=null;
  var $userid=null;
  var $username=null;
  var $password=null;
  var $domain=null;
  var $invoiceid=null;
  var $invoicedate=null;
  var $paymentdate=null;
  var $years=null;
  var $cost=null;
  var $tax=null;
  var $total=null;
  var $name=null;
  var $company=null;
  var $address=null;
  var $city=null;
  var $pincode=null;
  var $state=null;
  var $country=null;
  var $email=null;
  var $phone=null;
  var $fax=null;
  var $mobile=null;
  var $message=null;
  var $regd=null;

/**
* config table function
*/
  function __construct(&$db) {
  	parent::__construct( '#__aw_invoices', 'id', $db );
  }
}
/*
* settings table class
*/
class TableAWSettings extends JTable {
 
  var $id=null;
  var $businessID=null;
  var $testMode=null;
  var $currency=null;
  var $symbol=null;
  var $useCurrency=null;
  var $cFormat=null;
  var $tax=null;
  var $language=null;
  var $prefix=null;
  var $item=null;

/**
* config table function
*/
  function __construct(&$db) {
  	parent::__construct( '#__aw_settings', 'id', $db );
  }
}
/*
* ext table class
*/
class TableAWExt extends JTable {
 
  var $id=null;
  var $extension=null;
  var $price=null;
  var $server=null;
  var $notfound=null;
  var $byePass=null;
  var $registerP=null;
  var $transferP=null;
  var $hostingP=null;
  
  var $incomponent=null;
  var $checkedc=null;
  var $orderingc=null;
  var $inmodule=null;
  var $checked=null;
  var $ordering=null;
  
  var $extGroup=null;
  var $description=null;
  var $continent=null;
  var $country=null;
  var $extCat=null;
  var $flag=null;
  var $published=null;

/**
* exts table function
*/
  function __construct(&$db) {
  	parent::__construct( '#__aw_ext', 'id', $db );
  }
}
/*
* reg table class
*/
class TableAWReg extends JTable {

  var $id=null;
  var $regLink=null;
  var $regLinkName=null;
  var $target=null;
  var $which=null;
  var $regDefault=null;
  var $published=null;

/**
* reg table function
*/
  function __construct(&$db) {
  	parent::__construct( '#__aw_reg', 'id', $db );
  }
}
/*
* domains table class
*/
class TableAWDomains extends JTable {
 
  var $id=null;
  var $date=null;
  var $name=null;
  var $times=null;
  var $state=null;
  var $userinfo=null;

/**
* domains table function
*/
  function __construct(&$db) {
  	parent::__construct( '#__aw_domains', 'id', $db );
  }
}
/*
* hosting table class
*/
class TableAWHosting extends JTable {
 
  var $id=null;
  var $name=null;
  var $hGroup=null;
  var $hDefault=null;
  
  var $desc=null;
  var $applyTax=null;
  var $hidden=null;
  
  var $freeDomain=null;
  var $payTerms=null;
  var $tlds=null;
  
  var $payType=null;
  var $msetup=null;
  var $mfee=null;
  var $qsetup=null;
  var $qfee=null;
  var $ssetup=null;
  var $sfee=null;
  var $asetup=null;
  var $afee=null;
  var $bsetup=null;
  var $bfee=null;
  
  var $image=null;
  
  var $ordering=null;
  var $published=null;

/**
* domains table function
*/
  function __construct(&$db) {
	parent::__construct( '#__aw_hosting', 'id', $db );
  }
}
####################### end DATABASE CLASS ########################

class AWhois {
  var $c = 'PGEgc3R5bGU9ImRpc3BsYXk6bm9uZTsiIGhyZWY9Imh0dHA6Ly93d3cuc29mdHVmZi5vcmcvIiB0aXRsZT0iU29mdHVmZidzIEFqYXggV2hvaXMiIHRhcmdldD0iX2JsYW5rIiByZWw9Im5vZm9sbG93Ij5BamF4IFdob2lzPC9hPg==';
  var $version = "Pro 1.0";
  function versionc() {
	  return base64_decode($this->c);
  }
}

?>